package tt.dz.appserver.service.business;

import org.apache.avro.AvroRemoteException;

import com.alibaba.fastjson.JSONObject;


/**
 * 预约相关业务接口
 * @author Administrator
 *
 */
public interface ReservationService {

	/**
	 * 预约
	 * @param userCard
	 * @param chargerId
	 * @return
	 * @throws AvroRemoteException
	 */
	public JSONObject reservation (String userCard, String chargerId, String plugNo) throws AvroRemoteException;
	
	/**
	 * 取消预约
	 * @param reservationSn
	 * @return
	 * @throws AvroRemoteException
	 */
	public JSONObject cancelReservation(String reservationSn) throws AvroRemoteException;
	
	/**
	 * 预约列表
	 * @param userCard
	 * @param pageNo
	 * @return
	 * @throws AvroRemoteException
	 */
	public JSONObject reservationList(String userCard, int pageNo) throws AvroRemoteException;
	
	/**
	 * 获取预约详细
	 * @param reservationSn
	 * @return
	 * @throws AvroRemoteException
	 */
	public JSONObject getReservationDetail(String reservationSn) throws AvroRemoteException;
	
	
}
